<?php
use Workerman\Worker;

$worker = new Worker('http://0.0.0.0:12345');

$worker->name = "http protocol test";

$worker->count = 4;

$worker->onMessage = function ($con,$data){
    $con->send("hello world");
};


if (!defined("GLOBAL_START")) {
    Worker::runAll();
}